package com.kupurui.asteacher.view;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/8/23.
 */

public class MyProgressTextView extends TextView {


    private int height;
    private int width;

    public MyProgressTextView(Context context) {
        super(context);
    }

    public MyProgressTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyProgressTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {

        height =getHeight();
        width= getWidth();

//        super.onDraw(canvas);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
